package f.h.dragon.patterns.mediator;

/**
 * Colleague: Colleague interface
 * 
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2012/04/20
 * @since 1.0
 */
public interface Colleague {

	//Logic
	/**
	 * notify cmd to name
	 * 
	 * @param name
	 * @param cmd
	 */
	public void notify(String name, String cmd);
	
	/**
	 * add task to to-do list
	 * 
	 * @param task
	 */
	public void todo(String task);
	
	/**
	 * get name of colleague
	 */
	public String getName();
	
	/**
	 * register mediator
	 * 
	 * @param mediator
	 */
	public void register(Mediator mediator);
	
}
